package com.example.springmybatis.service;

import com.example.springmybatis.entity.Classlist;
import com.example.springmybatis.mapper.Classlistmapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class Classservice {

    @Resource
    private Classlistmapper classlistmapper;

    public List<Classlist> getClasslist(){
        List<Classlist> classlist =classlistmapper.selectAll();
        System.out.println("-------------------------");
        return classlist;
    }
}
